import request from '@/utils/request'

// 查询统计图配置列表
export function listDeviceReportChart(query) {
  return request({
    url: '/report/deviceReportChart/list',
    method: 'get',
    params: query
  })
}

// 查询统计图配置详细
export function getDeviceReportChart(id) {
  return request({
    url: '/report/deviceReportChart/' + id,
    method: 'get'
  })
}

// 新增统计图配置
export function addDeviceReportChart(data) {
  return request({
    url: '/report/deviceReportChart',
    method: 'post',
    data: data
  })
}

// 修改统计图配置
export function updateDeviceReportChart(data) {
  return request({
    url: '/report/deviceReportChart',
    method: 'put',
    data: data
  })
}

// 删除统计图配置
export function delDeviceReportChart(id) {
  return request({
    url: '/report/deviceReportChart/' + id,
    method: 'delete'
  })
}
